Optimal. Leaf size=37 \[ -\frac{2 \sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \cot (e+f x)}{\sqrt{a \csc (e+f x)+a}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0585123, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08, Rules used = {3801, 215} \[ -\frac{2 \sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \cot (e+f x)}{\sqrt{a \csc (e+f x)+a}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3801
Rule 215
Rubi steps
\begin{align*} \int \sqrt{\csc (e+f x)} \sqrt{a+a \csc (e+f x)} \, dx &=-\frac{2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{a}}} \, dx,x,\frac{a \cot (e+f x)}{\sqrt{a+a \csc (e+f x)}}\right )}{f}\\ &=-\frac{2 \sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \cot (e+f x)}{\sqrt{a+a \csc (e+f x)}}\right )}{f}\\ \end{align*}
Mathematica [B] time = 0.408282, size = 108, normalized size = 2.92 \[ \frac{2 \cot (e+f x) \sqrt{a (\csc (e+f x)+1)} \left (\log (\csc (e+f x)+1)-\log \left (\csc ^{\frac{3}{2}}(e+f x)+\sqrt{\csc (e+f x)}+\sqrt{\cot ^2(e+f x)} \sqrt{\csc (e+f x)+1}\right )\right )}{f \sqrt{\cot ^2(e+f x)} \sqrt{\csc (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.359, size = 114, normalized size = 3.1 \begin{align*} -{\frac{\sqrt{2} \left ( -1+\cos \left ( fx+e \right ) \right ) }{f \left ( -1+\cos \left ( fx+e \right ) -\sin \left ( fx+e \right ) \right ) }\sqrt{ \left ( \sin \left ( fx+e \right ) \right ) ^{-1}}\sqrt{{\frac{a \left ( \sin \left ( fx+e \right ) +1 \right ) }{\sin \left ( fx+e \right ) }}} \left ({\it Arcsinh} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) +{\it Artanh} \left ({\frac{\sqrt{2}}{2}{\frac{1}{\sqrt{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}}}} \right ) \right ){\frac{1}{\sqrt{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \csc \left (f x + e\right ) + a} \sqrt{\csc \left (f x + e\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.534522, size = 755, normalized size = 20.41 \begin{align*} \left [\frac{\sqrt{a} \log \left (\frac{a \cos \left (f x + e\right )^{3} - 7 \, a \cos \left (f x + e\right )^{2} - 9 \, a \cos \left (f x + e\right ) +{\left (a \cos \left (f x + e\right )^{2} + 8 \, a \cos \left (f x + e\right ) - a\right )} \sin \left (f x + e\right ) + \frac{4 \,{\left (\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} -{\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 3\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 3\right )} \sqrt{a} \sqrt{\frac{a \sin \left (f x + e\right ) + a}{\sin \left (f x + e\right )}}}{\sqrt{\sin \left (f x + e\right )}} - a}{\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2} +{\left (\cos \left (f x + e\right )^{2} - 1\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 1}\right )}{2 \, f}, \frac{\sqrt{-a} \arctan \left (\frac{{\left (\cos \left (f x + e\right )^{2} + 2 \, \sin \left (f x + e\right ) - 1\right )} \sqrt{-a} \sqrt{\frac{a \sin \left (f x + e\right ) + a}{\sin \left (f x + e\right )}}}{2 \, a \cos \left (f x + e\right ) \sqrt{\sin \left (f x + e\right )}}\right )}{f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (\csc{\left (e + f x \right )} + 1\right )} \sqrt{\csc{\left (e + f x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \csc \left (f x + e\right ) + a} \sqrt{\csc \left (f x + e\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]